Skip to content

Use Generated ResourceHelper for NodeJs Strings Used in Attributes#1384

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
mjbvz:move-nodejs-attribute-strings-to-use-generated-resource-helper2
Oct 24, 2016
Merged

Use Generated ResourceHelper for NodeJs Strings Used in Attributes#1384
mjbvz merged 1 commit intomicrosoft:masterfrom
mjbvz:move-nodejs-attribute-strings-to-use-generated-resource-helper2

Conversation

@mjbvz
Copy link
Copy Markdown
Contributor

@mjbvz mjbvz commented Oct 21, 2016

Bug
Follow up on #1382. That PR changed most strings used in code to use the generated resource helper classes. It did not convert over strings that are used in attributes.

Fix
Change localizable strings used in attributes to use the generated resource helper as wells. The strings passed to attributes must be constant, so nameof is used. This ensures the strings are strongly typed while also letting us get rid of most SR entries.

**Bug**
Follow up on microsoft#1382. That PR changed most strings used in code to use the generated resource helper classes. It did not convert over strings that are used in attributes.

**Fix**
Move these strings over as well. The strings passed to attributes must be constant, so `nameof` is used to ensure the strings are strongly typed.
@mjbvz mjbvz merged commit d094ee2 into microsoft:master Oct 24, 2016
@mjbvz mjbvz removed the in-progress label Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants